<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>音乐系统</title>
    <script>
        // 检查登录状态
        var userInfo = localStorage.getItem('userInfo');
        if (userInfo) {
            // 已登录，跳转到主页
            window.location.href = 'test.html';
        } else {
            // 未登录，跳转到登录页
            window.location.href = 'login.html';
        }
    </script>
</head>
<body>
    <div style="text-align: center; padding-top: 100px;">
        <h2>正在跳转...</h2>
    </div>
</body>
</html>
